package com.hzcx.app.simplechat.ui.setting.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hzcx.app.simplechat.R;
import com.hzcx.app.simplechat.ui.setting.bean.BlackListBean;
import com.hzcx.app.simplechat.util.glide.GlideUtils;

import java.util.List;

public class BlackListAdapter extends BaseQuickAdapter<BlackListBean, BaseViewHolder> {
    public BlackListAdapter(int layoutResId, @Nullable List<BlackListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BlackListBean item) {
        helper.setText(R.id.tv_nick_name, item.getNickname());
        helper.setText(R.id.tv_date,item.getCreatetime());
        GlideUtils.loadImg(mContext,item.getAvatar(),helper.getView(R.id.iv_head));

        helper.addOnClickListener(R.id.ll_delete);
    }
}
